﻿@model IEnumerable<Wei.Model.Content_Model>
@using Wei.Model;
@{
    ViewBag.Title = "Content_List";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<style>
    .fly-list li {
        position: relative;
        height: 45px;
        line-height: 22px;
        padding: 15px 15px 15px 75px;
        border-bottom: 1px dotted #e2e2e2;
    }

    .fly-avatar img {
        display: block;
        width: 45px;
        height: 45px;
        margin: 0;
        border-radius: 2px;
    }

    .fly-avatar {
        position: absolute;
        left: 15px;
        top: 15px;
    }

    .fly-list-info a[link] {
        color: #999;
    }

    a {
        color: #333;
        text-decoration: none;
    }

    .fly-list li h2 {
        height: 26px;
        font-size: 18px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .fly-list-info {
        position: relative;
        /*font-size: 13px;
        color: #999;*/
    }

        .fly-list-info span {
            font-size: 13px;
            color: #999;
        }

    .fly-list-nums {
        right: 0;
        top: 0;
        padding-right: 0 !important;
    }
</style>
<div class="layui-row layui-col-space15">
    <div class="layui-col-md9">
        <div class="layui-tab layui-tab-card" style="background:#fff;min-height:700px;">
            <ul class="layui-tab-title">
                <li class="layui-this">@ViewBag.About</li>
            </ul>
            <div class="layui-tab-content">
                <div class="layui-tab-item layui-show">
                    <ul class="fly-list">
                        @{
        if (Model != null & (Model as List<Content_Model>).Count > 0)
        {
            foreach (var item in Model)
            {
                    <li>
                        <a href="/u/9646728" class="fly-avatar">
                            <img src="@item.c_cover_img" alt="@item.c_title">
                        </a>
                        <h2> <a href="/Home/Content_Detail?c_id=@item.c_id">@item.c_title</a> </h2>
                        <div class="fly-list-info">
                            作者： <a href="/u/9646728" link=""><cite>@item.c_author</cite> </a>
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            发布时间：<span>@string.Format("{0:yyyy-MM-dd HH:mm}", item.c_create_date)</span>
                            &nbsp;&nbsp;&nbsp;&nbsp;
                            标签：<a class="layui-badge">@item.c_type_name</a>
                            <div class="layui-layout-right">
                                <span class="fly-list-nums"><i class="layui-icon" title="查看数" style="font-size: 20px; color: #1E9FFF;">&#xe705;</i>&nbsp;@item.c_read_num</span>
                                &nbsp;&nbsp;
                                <span class="fly-list-nums"><i class="layui-icon" title="点赞数" style="font-size: 20px; color: #1E9FFF;">&#xe6c6;</i>&nbsp;@item.c_good</span>
                                &nbsp;&nbsp;
                                <span class="fly-list-nums"><i class="layui-icon" title="评论数" style="font-size: 20px; color: #1E9FFF;">&#xe63a;</i>&nbsp;@item.c_good</span>
                            </div>
                        </div>
                        <div class="fly-list-badge">
                        </div>
                    </li>
}
}
else
{
                    <li> 找不到相关数据 </li>
}
                        }
                    </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-col-md3">
        @Html.Action("Content_Type_List", "Home")
    </div>
</div>
